<template>
  <div>
    <div class="title">基本信息</div>
    <div class="dialog-content" v-if="type==='2'">
      <el-form
        ref="dealMajorForm"
        :model="dealMajorForm"
        :inline="true"
        label-width="200px"
        disabled
      >
        <el-form-item label="公司全称" prop="customerLongName">
          <el-input v-model="dealMajorForm.customerLongName"> </el-input>
        </el-form-item>
        <el-form-item label="公司简称" prop="customerShortName">
          <el-input v-model="dealMajorForm.customerShortName"> </el-input>
        </el-form-item>
        <el-form-item label="组织机构代码" prop="orgInstitutionBarCode">
          <el-input v-model="dealMajorForm.orgInstitutionBarCode"> </el-input>
        </el-form-item>
        <el-form-item label="统一社会信用代码" prop="creditCode">
          <el-input v-model="dealMajorForm.creditCode"> </el-input>
        </el-form-item>
        <el-form-item label="法定代表人" prop="securitiesRepresentative">
          <el-input v-model="dealMajorForm.securitiesRepresentative">
          </el-input>
        </el-form-item>
        <el-form-item label="注册资本" prop="registeredCapital">
          <el-input v-model="dealMajorForm.registeredCapital"> </el-input>
        </el-form-item>
        <el-form-item label="实缴资本" prop="paidInCapital">
          <el-input v-model="dealMajorForm.paidInCapital"> </el-input>
        </el-form-item>
        <el-form-item label="行业分类" prop="industryClassification">
          <el-input v-model="dealMajorForm.industryClassification"> </el-input>
        </el-form-item>
        <el-form-item label="公司类型" prop="corpOwnership">
          <el-input v-model="dealMajorForm.corpOwnership"> </el-input>
        </el-form-item>
        
        <el-form-item label="主证件类型" prop="idType">
          <el-input v-model="dealMajorForm.idType"> </el-input>
        </el-form-item>
        
        
        <el-form-item label="主证件号码" prop="idNumber">
          <el-input v-model="dealMajorForm.idNumber"> </el-input>
        </el-form-item>
        
        <el-form-item label="注册登记国家" prop="regCountry">
          <el-input v-model="dealMajorForm.regCountry"> </el-input>
        </el-form-item>
        
        <el-form-item label="辅证件类型" prop="auxDocType">
          <el-input v-model="dealMajorForm.auxDocType"> </el-input>
        </el-form-item>
        
        <el-form-item label="辅证件号码" prop="auxDocNum">
          <el-input v-model="dealMajorForm.auxDocNum"> </el-input>
        </el-form-item>

        
        <el-form-item label="创建渠道" prop="creationCh">
          <el-input v-model="dealMajorForm.creationCh"> </el-input>
        </el-form-item>


        <el-form-item label="同业属性" prop="ibankProp">
          <el-input v-model="dealMajorForm.ibankProp"> </el-input>
        </el-form-item>
        
        <el-form-item label="国民经济行业类型(门类)" prop="indCat">
          <el-input v-model="dealMajorForm.indCat"> </el-input>
        </el-form-item>


        
        <el-form-item label="国民经济行业类型(大类)" prop="indClass">
          <el-input v-model="dealMajorForm.indClass"> </el-input>
        </el-form-item>

        

        
        
        <el-form-item label="注册地址" prop="registeredAddress">
          <el-input v-model="dealMajorForm.registeredAddress"> </el-input>
        </el-form-item>
        <el-form-item label="经营状态" prop="operatingState">
          <el-input v-model="dealMajorForm.operatingState"> </el-input>
        </el-form-item>
        <el-form-item label="成立日期" prop="dateOfEstablishment">
          <el-input v-model="dealMajorForm.dateOfEstablishment"> </el-input>
        </el-form-item>
        <el-form-item label="办公地址" prop="officeAddress">
          <el-input v-model="dealMajorForm.officeAddress"> </el-input>
        </el-form-item>
        <el-form-item label="疑似实际控制人" prop="suspectedActualController">
          <el-input v-model="dealMajorForm.suspectedActualController">
          </el-input>
        </el-form-item>
        <el-form-item label="核准日期" prop="dateOfApproval">
          <el-input v-model="dealMajorForm.dateOfApproval"> </el-input>
        </el-form-item>
        <el-form-item label="注册号" prop="registrationNumber">
          <el-input v-model="dealMajorForm.registrationNumber"> </el-input>
        </el-form-item>
        <el-form-item label="营业期限" prop="operatingTerm">
          <el-input v-model="dealMajorForm.operatingTerm"> </el-input>
        </el-form-item>
        <el-form-item label="登机机关" prop="registrationAuthority">
          <el-input v-model="dealMajorForm.registrationAuthority"> </el-input>
        </el-form-item>
        <el-form-item label="公司英文名" prop="companyEnglishName">
          <el-input v-model="dealMajorForm.companyEnglishName"> </el-input>
        </el-form-item>
        <el-form-item label="人员规模" prop="personnelSize">
          <el-input v-model="dealMajorForm.personnelSize"> </el-input>
        </el-form-item>
        <el-form-item label="参保人数" prop="insuredNumber">
          <el-input v-model="dealMajorForm.insuredNumber"> </el-input>
        </el-form-item>
        <el-form-item label="所属省份" prop="cusBlocks">
          <el-input v-model="dealMajorForm.cusBlocks"> </el-input>
        </el-form-item>
        <el-form-item label="是否上市" prop="toListOrNot">
          <el-input v-model="dealMajorForm.toListOrNot"> </el-input>
        </el-form-item>
        <el-form-item label="ECIF编号" prop="ecifCustId">
          <el-input v-model="dealMajorForm.ecifCustId"> </el-input>
        </el-form-item>
        <el-form-item label="上级主管单位客户号" prop="supCustNumber">
          <el-input v-model="dealMajorForm.supCustNumber"> </el-input>
        </el-form-item>

        
        <el-form-item label="上级主管单位名称" prop="supName">
          <el-input v-model="dealMajorForm.supName"> </el-input>
        </el-form-item>
        <el-form-item label="上级主管单位主证件类型" prop="supIdType">
          <el-input v-model="dealMajorForm.supIdType"> </el-input>
        </el-form-item>
        <el-form-item label="上级主管单位主证件号码" prop="supIdNumber">
          <el-input v-model="dealMajorForm.supIdNumber"> </el-input>
        </el-form-item>
        <el-form-item label="经营范围" prop="businessScope">
          <el-input v-model="dealMajorForm.businessScope"> </el-input>
        </el-form-item>
        <el-form-item label="简介" prop="companyIntro">
          <el-input v-model="dealMajorForm.companyIntro"> </el-input>
        </el-form-item>
      </el-form>
    </div>
    
    <div class="dialog-content" v-if="type!=='2'">
      <el-form
        ref="dealMajorForm"
        :model="dealMajorForm"
        :inline="true"
        label-width="200px"
        disabled
      >
        <el-form-item label="基金代码" prop="assetCode">
          <el-input v-model="dealMajorForm.assetCode"> </el-input>
        </el-form-item>
        <el-form-item label="基金简称" prop="fundShortName">
          <el-input v-model="dealMajorForm.fundShortName"> </el-input>
        </el-form-item>
        <el-form-item label="基金全称" prop="fundFullName">
          <el-input v-model="dealMajorForm.fundFullName"> </el-input>
        </el-form-item>
        <el-form-item label="基金管理人名称" prop="fundManagerName">
          <el-input v-model="dealMajorForm.fundManagerName"> </el-input>
        </el-form-item>
        <el-form-item label="基金属性" prop="fundProperty">
          <el-input v-model="dealMajorForm.fundProperty">
          </el-input>
        </el-form-item>
        <el-form-item label="基金成立日期" prop="fundEstablishDate">
          <el-input v-model="dealMajorForm.fundEstablishDate"> </el-input>
        </el-form-item>
        <el-form-item label="基金认购结束日期" prop="fundSubscribeEndDate">
          <el-input v-model="dealMajorForm.fundSubscribeEndDate"> </el-input>
        </el-form-item>
        <el-form-item label="上市日期" prop="listDate">
          <el-input v-model="dealMajorForm.listDate"> </el-input>
        </el-form-item>
        <el-form-item label="存续开始日期" prop="existStartDate">
          <el-input v-model="dealMajorForm.existStartDate"> </el-input>
        </el-form-item>
        
        <el-form-item label="存续结束日期" prop="existEndDate">
          <el-input v-model="dealMajorForm.existEndDate"> </el-input>
        </el-form-item>
        
        
        <el-form-item label="有限期限标志" prop="isLimitTermFlag">
          <el-input v-model="dealMajorForm.isLimitTermFlag"> </el-input>
        </el-form-item>
        
        <el-form-item label="运作方式" prop="operationMode">
          <el-input v-model="dealMajorForm.operationMode"> </el-input>
        </el-form-item>
        
        <el-form-item label="货币代码" prop="currencyCode">
          <el-input v-model="dealMajorForm.currencyCode"> </el-input>
        </el-form-item>
        
        <el-form-item label="投资类型" prop="investType">
          <el-input v-model="dealMajorForm.investType"> </el-input>
        </el-form-item>

        
        <el-form-item label="最新份额" prop="latestShare">
          <el-input v-model="dealMajorForm.latestShare"> </el-input>
        </el-form-item>


        
        
        <el-form-item label="基金单位价值" prop="fundUnitValue">
          <el-input v-model="dealMajorForm.fundUnitValue"> </el-input>
        </el-form-item>
        <el-form-item label="基金投资一级分类" prop="hfFundClassFirst">
          <el-input v-model="dealMajorForm.hfFundClassFirst"> </el-input>
        </el-form-item>
        <el-form-item label="基金投资二级分类" prop="hfFundClassSecond">
          <el-input v-model="dealMajorForm.hfFundClassSecond"> </el-input>
        </el-form-item>
        <el-form-item label="证监会基金分类" prop="hfFundClassCsrc">
          <el-input v-model="dealMajorForm.hfFundClassCsrc"> </el-input>
        </el-form-item>
        <el-form-item label="期末持股比例" prop="hfEndHoldingStockProp">
          <el-input v-model="dealMajorForm.hfEndHoldingStockProp">
          </el-input>
        </el-form-item>
        <el-form-item label="预计封闭期结束日" prop="hfForcastClosedEndDate">
          <el-input v-model="dealMajorForm.hfForcastClosedEndDate"> </el-input>
        </el-form-item>
        <el-form-item label="基金类型" prop="hfFundType">
          <el-input v-model="dealMajorForm.hfFundType"> </el-input>
        </el-form-item>
        <el-form-item label="申购赎回状态" prop="hfSubscribeRedeemStatus">
          <el-input v-model="dealMajorForm.hfSubscribeRedeemStatus"> </el-input>
        </el-form-item>
        <el-form-item label="被代理人所属部门" prop="hfAgentDepartment">
          <el-input v-model="dealMajorForm.hfAgentDepartment"> </el-input>
        </el-form-item>
        <el-form-item label="持有SPV股权比例" prop="hfSpbHoldingProp">
          <el-input v-model="dealMajorForm.hfSpbHoldingProp"> </el-input>
        </el-form-item>
        <el-form-item label="是否定期开放基金" prop="hfIsRegularOpenFundFlag">
          <el-input v-model="dealMajorForm.hfIsRegularOpenFundFlag"> </el-input>
        </el-form-item>
        <el-form-item label="被代理人所属国家" prop="hfAgentCountry">
          <el-input v-model="dealMajorForm.hfAgentCountry"> </el-input>
        </el-form-item>
        <el-form-item label="预计下期开放日" prop="hfForcastNextOpenDate">
          <el-input v-model="dealMajorForm.hfForcastNextOpenDate"> </el-input>
        </el-form-item>
        <el-form-item label="申报主体身份" prop="hfDeclareEntityRole">
          <el-input v-model="dealMajorForm.hfDeclareEntityRole"> </el-input>
        </el-form-item>
        <el-form-item label="是否分红" prop="hfDividendFlag">
          <el-input v-model="dealMajorForm.hfDividendFlag"> </el-input>
        </el-form-item>
        <el-form-item label="每日估值截止时间" prop="hfCutOffTime">
          <el-input v-model="dealMajorForm.hfCutOffTime"> </el-input>
        </el-form-item>

        
        <el-form-item label="每日估值截止时区" prop="hfCutOffTimeZone">
          <el-input v-model="dealMajorForm.hfCutOffTimeZone"> </el-input>
        </el-form-item>
        <el-form-item label="交易日期与结算日期间隔" prop="hfSettlementDays">
          <el-input v-model="dealMajorForm.hfSettlementDays"> </el-input>
        </el-form-item>
        <el-form-item label="单位价值小数位" prop="hfUnitValueDecimal">
          <el-input v-model="dealMajorForm.hfUnitValueDecimal"> </el-input>
        </el-form-item>
        <el-form-item label="是否定制基金" prop="hfCustomFunds">
          <el-input v-model="dealMajorForm.hfCustomFunds"> </el-input>
        </el-form-item>
        <el-form-item label="基金发行地" prop="hfFundIssuePlace">
          <el-input v-model="dealMajorForm.hfFundIssuePlace"> </el-input>
        </el-form-item>


        
        <el-form-item label="投资工具类型" prop="hfInvestInstrumentType">
          <el-input v-model="dealMajorForm.hfInvestInstrumentType"> </el-input>
        </el-form-item>
        <el-form-item label="基金业务类型" prop="hfFundBusinessType">
          <el-input v-model="dealMajorForm.hfFundBusinessType"> </el-input>
        </el-form-item>
        <el-form-item label="申购基金出资方式" prop="hfSubsCapitalRaiseMode">
          <el-input v-model="dealMajorForm.hfSubsCapitalRaiseMode"> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构代码" prop="hfInvestedOrgCode">
          <el-input v-model="dealMajorForm.hfInvestedOrgCode"> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构行业" prop="hfInvestedOrgIndustry">
          <el-input v-model="dealMajorForm.hfInvestedOrgIndustry"> </el-input>
        </el-form-item>


        
        <el-form-item label="被投资机构关系" prop="hfInvestedOrgRelation">
          <el-input v-model="dealMajorForm.hfInvestedOrgRelation"> </el-input>
        </el-form-item>
        <el-form-item label="最终控制方全称" prop="hfFinalControlFullName">
          <el-input v-model="dealMajorForm.hfFinalControlFullName"> </el-input>
        </el-form-item>
        <el-form-item label="最终控制方国家" prop="hfFinalControlCountry">
          <el-input v-model="dealMajorForm.hfFinalControlCountry"> </el-input>
        </el-form-item>
        <el-form-item label="期末表决权比例" prop="hfEndTermVotingProp">
          <el-input v-model="dealMajorForm.hfEndTermVotingProp"> </el-input>
        </el-form-item>
        <el-form-item label="持有被投资机构" prop="hfHoldingInvestedOrg">
          <el-input v-model="dealMajorForm.hfHoldingInvestedOrg"> </el-input>
        </el-form-item>


        
        <el-form-item label="SPV所属国家" prop="hfSpvBelongCountry">
          <el-input v-model="dealMajorForm.hfSpvBelongCountry"> </el-input>
        </el-form-item>
        <el-form-item label="SPV名称" prop="hfSpvName">
          <el-input v-model="dealMajorForm.hfSpvName"> </el-input>
        </el-form-item>
        <el-form-item label="SPV代码" prop="hfSpvCode">
          <el-input v-model="dealMajorForm.hfSpvCode"> </el-input>
        </el-form-item>
        <el-form-item label="SPV所属部门" prop="hfSpvBelongDepart">
          <el-input v-model="dealMajorForm.hfSpvBelongDepart"> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构已上市" prop="hfInvestedOrgListFlag">
          <el-input v-model="dealMajorForm.hfInvestedOrgListFlag"> </el-input>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
import { getBaseInfo, getQueryView,getProductBaseInfo } from '@/api/customerList/index.js';
export default {
  props: {
    title: {
      type: String,
      default: '新增',
    },
    type:{
      type:String
    },
    
    customerId:{
      type:String
    }
  },
  data() {
    return {
      dealMajorForm: {
        tradeId: '交易ID',
        tradeVersion: '交易版本号',
        tradeStatus: '交易状态', //
        dataBatchDate: '数据批次日期', //
        srcSystemCode: '源系统名称', //
        srcBizCode: '源系统编号', //
        // TRADETYPE: '', //summit55交易类型
        // TRADEID: '', //summit55交易ID
        productName: '产品代码', //
        tradeType: '交易类型', //
        subTradeType: '子交易类型', //
        bookName: '投资组合', //
        cptFullCnnm: '交易对手', //
        tradePurpose: '交易目的说明', //
        tradeDate: '', //交易日期
        tradeTime: '', //交易时间
        inputDate: '', //录入日期
        traderId: '', //交易员
        dealDir: '', //交易方向
        notional: '', //名义本金
        tradeAmount: '11111111111111111111111111111111111111111111', //交易金额(买入)
        tradeAmount2: '', //交易金额卖出
        valueDate: '', //起息日期
        maturityDate: '', //到期日期
        settleDate: '', //结算日期
        settleDate2: '', //到期结算日期
        isMirrorFlag: '', //是否内部交易
        isClienttradeFlag: '', //是否客户交易
        netcreditFlag: '', //信用额度是否轧差:
        dataQualityType: '', //数据质量
        tradeFlag1: '', //交易标签1
        tradeFlag2: '', //交易标签2
        comment1: '', //交易备注1
        comment2: '', //交易备注2
        tradeDesc: '', //交易描述
        settleStatus: '', //结算状态
      },
      importToFromTypeOptions: [],
      importDireOptions: [],
      importGroupOptions: [],
      dealStatus: [
        {
          label: '新增',
          value: 'I',
        },
        {
          label: '修改',
          value: 'U',
        },
        {
          label: '删除',
          value: 'D',
        },
      ],
      TradeDataCenterCptFullCnnmDialogVisible: false,
    };
  },
  async created() {
    let res;
    if(this.type==='2')
    res = await getBaseInfo({ customerId: this.customerId });
    else
     res = await getProductBaseInfo({ customerId:this.customerId });
    this.dealMajorForm = res.data;
    // console.log(res2, 666);
  },
};
</script>

<style lang="scss" scoped>
.title {
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
  background: #354060;
  padding-left: 20px;
  margin-bottom: 16px;
}
.dialog-content {
  margin: auto;
  margin-bottom: 15px;
  .content-title {
    background-color: #354060;
    line-height: 36px;
    text-align: center;
  }
  .form-content {
    padding: 16px 0;
  }
}
.search-icon {
  position: absolute;
  top: 0;
  right: -36px;
  color: #fff;
  z-index: 999;
  background-color: #1f9bfd;
  line-height: 32px;
  width: 32px;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
}
::v-deep {
  .el-form .el-form-item {
    margin-bottom: 16px;
    .el-form-item__content .el-input__inner {
      width: 220px;
      border-radius: 2px;
    }
    .el-textarea__inner {
      background-color: #363657;
      border: 1px solid rgba(126, 163, 255, 0.3);
    }
  }
}
</style>
